﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp11
{
    class Aircraft: Vehicle,IFLY//飞机
    {
        private string name;
        public Aircraft(string name) :base(name)
        {
            this.name = name;
        }

        public void fly()
        {
            Console.WriteLine("{0}我能飞",this.name);
        }
    }

}